"; echo ""; ?> "; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $sid = $_GET["sid"]; $uid = getuid_sid($sid); $who = $_POST["who"]; $pres = $_POST["pres"]; $pds = $_POST["pds"]; $phr = $_POST["phr"]; $pmn = $_POST["pmn"]; $psc = $_POST["psc"]; $user = getnick_uid($who); $timeto = $pds * 24 * 60 * 60; $timeto += $phr * 60 * 60; $timeto += $pmn * 60; $timeto += $psc; $ptime = $timeto + time(); $uip = getip_uid($who); $ubr = getbr_uid($who); $who = $_GET["who"]; $whonick = getnick_uid($sid); $byuid = getuid_sid($sid); $unick = getnick_sid($sid); $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); $nick = getnick_sid($sid); $brws = explode(" ", $HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $time = time() + (17 * 60 * 60); $newtime = date("H:i", $time); $date = strtotime('+17 hours'); $newdate = date('D jS M y', $date); $user = getnick_sid($sid); $bantime = time() + (30 * 24 * 60 * 60); mysql_query("INSERT INTO ibwf_mlog SET action='Admincp Hack', details='
".$user."
Attempted to get in Admin tools: $pwd
Browser: $ubr
IP: $uip
', actdt='".time()."'"); $user = getnick_sid($sid); mysql_query("INSERT INTO ibwf_penalties SET uid='".$byuid."', penalty='2', exid='2', timeto='".$bantime."', pnreas='Banned: Auto Bann For hack attempt on admincp'"); $pmsg[1] = "Ip-banned for attempting a hack"; mysql_query("UPDATE ibwf_users SET lastpnreas='".$pmsg[1]." WHERE id='".$who."'"); mysql_query("INSERT INTO ibwf_mlog SET action='autoban', details='".getnick_uid(1)." auto banned $user for trying to be a wana be hacker', actdt='".time()."'"); $uip = getip_uid($who); $ubr = getbr_uid($who); $pmsg[1] = "Ip-banned"; mysql_query("INSERT INTO ibwf_mlog SET action='autoban', details='".getnick_uid(1)." auto banned $user for trying to be a wana be hacker', actdt='".time()."'"); mysql_query("UPDATE ibwf_users SET plusses='0', shield='0' WHERE id='".$byuid."'"); mysql_query("INSERT INTO ibwf_private SET text='[b](attempted a modcp hack and was banned)[/b][br/]".$pmtext."', byuid='".$byuid."', touid='1', timesent='".$tm."'"); echo "I don't know how did you get into here, but there's nothing to show

"; echo "Bye Bye.. Hack attempts will get you banned here lol
Ohh and also the log has been sent to YOURNAME inbox
"; echo "Permission Denied!
"; echo "
Only mod/admin/owner can use this page...
"; echo "Home"; echo "

"; echo ""; echo ""; exit(); } if(islogged($sid)==false) { echo ""; echo "Error!!!"; echo ""; echo ""; echo ""; echo "

"; echo "You are not logged in
"; echo "Or Your session has been expired

"; echo "Login"; echo "

"; echo ""; } addonline(getuid_sid($sid),"Admin Tools",""); if($action=="delp") { $pid = $_GET["pid"]; $tid = gettid_pid($pid); $fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("DELETE FROM ibwf_posts WHERE id='".$pid."'"); if($res) { $tname = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_topics WHERE id='".$tid."'")); mysql_query("INSERT INTO ibwf_mlog SET action='posts', details='".getnick_uid(getuid_sid($sid))." Deleted Post Number $pid Of the thread ".mysql_escape_string($tname[0])." at the forum ".getfname($fid)."', actdt='".time()."'"); echo "\"O\"/Post Message Deleted"; }else{ echo "\"X\"/Database Error"; } echo "

8 View Topic
"; $fname = getfname($fid); echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } ////////////////////////////////////////////Edit Post else if($action=="edtpst") { $pid = $_GET["pid"]; $ptext = $_POST["ptext"]; $tid = gettid_pid($pid); $fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("UPDATE ibwf_posts SET text='" .$ptext."' WHERE id='".$pid."'"); if($res) { $tname = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_topics WHERE id='".$tid."'")); mysql_query("INSERT INTO ibwf_mlog SET action='posts', details='".getnick_uid(getuid_sid($sid))." Edited Post Number $pid Of the thread ".mysql_escape_string($tname[0])." at the forum ".getfname($fid)."', actdt='".time()."'"); echo "\"O\"/Post Message Edited"; }else{ echo "\"X\"/Database Error"; } echo "

"; echo "8 View Topic
"; $fname = getfname($fid); echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } ////////////////////////////////////////////Edit Post else if($action=="edttpc") { $tid = $_GET["tid"]; $ttext = $_POST["ttext"]; $fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("UPDATE ibwf_topics SET text='" .$ttext."' WHERE id='".$tid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='topics', details='".getnick_uid(getuid_sid($sid))." Edited the text Of the thread ".mysql_escape_string(gettname($tid))." at the forum ".getfname($fid)."', actdt='".time()."'"); echo "\"O\"/Topic Message Edited"; }else{ echo "\"X\"/Database Error"; } echo "

"; echo "8 View Topic
"; $fname = getfname($fid); echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } ///////////////////////////////////////Close/ Open Topic else if($action=="clot") { $tid = $_GET["tid"]; $tdo = $_GET["tdo"]; $fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("UPDATE ibwf_topics SET closed='" .$tdo."' WHERE id='".$tid."'"); if($res) { if($tdo==1) { $msg = "Closed"; }else{ $msg = "Opened"; } mysql_query("INSERT INTO ibwf_mlog SET action='topics', details='".getnick_uid(getuid_sid($sid))." Closed The thread ".mysql_escape_string(gettname($tid))." at the forum ".getfname($fid)."', actdt='".time()."'"); echo "\"O\"/Topic $msg"; $tpci = mysql_fetch_array(mysql_query("SELECT name, authorid FROM ibwf_topics WHERE id='".$tid."'")); $tname = htmlspecialchars($tpci[0]); $msg = "your thread [topic=$tid]$tname"."[/topic] is $msg"."[br/][small][i]p.s: this is an automatic pm[/i][/small]"; autopm($msg, $tpci[1]); }else{ echo "\"X\"/Database Error"; } echo "

"; $fname = getfname($fid); echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } ///////////////////////////////////////Untrash user else if($action=="untr") { $who = $_GET["who"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $res = mysql_query("DELETE FROM ibwf_penalties WHERE penalty='0' AND uid='".$who."'"); if($res) { $unick = getnick_uid($who); mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='".getnick_uid(getuid_sid($sid))." Untrashed The user ".$unick."', actdt='".time()."'"); echo "\"O\"/$unick Untrashed"; }else{ echo "\"X\"/Database Error"; } echo "

"; echo "0 \"\"/Home"; echo "

"; } ///////////////////////////////////////Unban user else if($action=="unbn") { $who = $_GET["who"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; if(!isadmin(getuid_sid($sid))) { echo "Permission Denied!"; }else{ $res = mysql_query("DELETE FROM ibwf_penalties WHERE (penalty='1' OR penalty='2') AND uid='".$who."'"); if($res) { $unick = getnick_uid($who); mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='".getnick_uid(getuid_sid($sid))." Unbanned The user ".$unick."', actdt='".time()."'"); echo "\"O\"/$unick Unbanned"; }else{ echo "\"X\"/Database Error"; } } echo "

"; echo "0 \"\"/Home"; echo "

"; } ///////////////////////////////////////Delete shout else if($action=="delsh") { $shid = $_GET["shid"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; if(!ismod(getuid_sid($sid))) { echo "Permission Denied!"; }else{ $sht = mysql_fetch_array(mysql_query("SELECT shouter, shout FROM ibwf_shouts WHERE id='".$shid."'")); $msg = getnick_uid($sht[0]); $msg .= ": ".htmlspecialchars((strlen($sht[1])<20?$sht[1]:substr($sht[1], 0, 20))); $res = mysql_query("DELETE FROM ibwf_shouts WHERE id ='".$shid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='shouts', details='".getnick_uid(getuid_sid($sid))." Deleted the shout ".$shid." - $msg', actdt='".time()."'"); echo "\"O\"/Shout deleted"; }else{ echo "\"X\"/Database Error"; } } echo "

"; echo "0 \"\"/Home"; echo "

"; } ///////////////////////////////////////Pin/ Unpin Topic else if($action=="pint") { $tid = $_GET["tid"]; $tdo = $_GET["tdo"]; $fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $pnd = getpinned($fid); if($pnd<=5) { $res = mysql_query("UPDATE ibwf_topics SET pinned='" .$tdo."' WHERE id='".$tid."'"); if($res) { if($tdo==1) { $msg = "Pinned"; }else{ $msg = "Unpinned"; } mysql_query("INSERT INTO ibwf_mlog SET action='topics', details='".getnick_uid(getuid_sid($sid))." $msg The thread ".mysql_escape_string(gettname($tid))." at the forum ".getfname($fid)."', actdt='".time()."'"); echo "\"O\"/Topic $msg"; }else{ echo "\"X\"/Database Error"; } }else{ echo "\"X\"/You can only pin 5 topics in every forum"; } echo "

"; $fname = getfname($fid); echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } ///////////////////////////////////Delete the damn thing else if($action=="delt") { $tid = $_GET["tid"]; $fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $tname=gettname($tid); $res = mysql_query("DELETE FROM ibwf_topics WHERE id='".$tid."'"); if($res) { mysql_query("DELETE FROM ibwf_posts WHERE tid='".$tid."'"); mysql_query("INSERT INTO ibwf_mlog SET action='topics', details='".getnick_uid(getuid_sid($sid))." Deleted The thread ".mysql_escape_string($tname)." at the forum ".getfname($fid)."', actdt='".time()."'"); echo "\"O\"/Topic Deleted"; }else{ echo "\"X\"/Database Error"; } echo "

"; $fname = getfname($fid); echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } ////////////////////////////////////////////Edit Post else if($action=="rentpc") { $tid = $_GET["tid"]; $tname = $_POST["tname"]; $fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $otname = gettname($tid); if(trim($tname!="")) { $not = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE name LIKE '".$tname."' AND fid='".$fid."'")); if($not[0]==0) { $res = mysql_query("UPDATE ibwf_topics SET name='" .$tname."' WHERE id='".$tid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='topics', details='".getnick_uid(getuid_sid($sid))." Renamed The thread ".mysql_escape_string($otname)." to ".mysql_escape_string($tname)." at the forum ".getfname($fid)."', actdt='".time()."'"); echo "\"O\"/Topic Renamed"; }else{ echo "\"X\"/Database Error"; } }else{ echo "\"X\"/Topic Name already exist"; } }else{ echo "\"X\"/You must specify a name for the topic"; } echo "

"; echo "8 View Topic
"; $fname = getfname($fid); echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } ///////////////////////////////////////////////////Move topic else if($action=="mvt") { $tid = $_GET["tid"]; $mtf = $_POST["mtf"]; $fname = htmlspecialchars(getfname($mtf)); //$fid = getfid_tid($tid); echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; $not = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE name LIKE '".$tname."' AND fid='".$mtf."'")); if($not[0]==0) { $res = mysql_query("UPDATE ibwf_topics SET fid='" .$mtf."', moved='1' WHERE id='".$tid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='topics', details='".getnick_uid(getuid_sid($sid))." Moved The thread ".mysql_escape_string($tname)." to forum ".getfname($fid)."', actdt='".time()."'"); $tpci = mysql_fetch_array(mysql_query("SELECT name, authorid FROM ibwf_topics WHERE id='".$tid."'")); $tname = htmlspecialchars($tpci[0]); $msg = "your thread [topic=$tid]$tname"."[/topic] Was moved to $fname forum[br/][small][i]p.s: this is an automatic pm[/i][/small]"; autopm($msg, $tpci[1]); echo "\"O\"/Topic Moved"; }else{ echo "\"X\"/Database Error"; } }else{ echo "\"X\"/Topic Name already exist"; } echo "

"; echo "9 $fname
"; echo "0 \"\"/Home"; echo "

"; } //////////////////////////////////////////Handle PM else if($action=="hpm") { $pid = $_GET["pid"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; if(!isowner(getuid_sid($sid))) { echo "Permission Denied!"; }else{ $info = mysql_fetch_array(mysql_query("SELECT byuid, touid FROM ibwf_private WHERE id='".$pid."'")); $res = mysql_query("UPDATE ibwf_private SET reported='2' WHERE id='".$pid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='handling', details='".getnick_uid(getuid_sid($sid))." handled The PM ".$pid."', actdt='".time()."'"); echo "\"O\"/PM Handled"; }else{ echo "\"X\"/Database Error"; } } echo "

"; echo "7 PM Sender's Profile
"; echo "8 PM Reporter's Profile

"; echo "9 Reports/Logs
"; echo "0 \"\"/Home"; echo "

"; } //////////////////////////////////////////Handle Popup else if($action=="hpop") { $pid = $_GET["pid"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; if(!isowner(getuid_sid($sid))) { echo "Permission Denied!"; }else{ $info = mysql_fetch_array(mysql_query("SELECT byuid, touid FROM ibwf_popups WHERE id='".$pid."'")); $res = mysql_query("UPDATE ibwf_popups SET reported='2' WHERE id='".$pid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='handling', details='".getnick_uid(getuid_sid($sid))." handled The Popup ".$pid."', actdt='".time()."'"); echo "\"O\"/Popup Handled"; }else{ echo "\"X\"/Database Error"; } } echo "

"; echo "7 PM Sender's Profile
"; echo "8 PM Reporter's Profile

"; echo "9 Reports/Logs
"; echo "0 \"\"/Home"; echo "

"; } //////////////////////////////////////////Handle Post else if($action=="hps") { $pid = $_GET["pid"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; if(!isowner(getuid_sid($sid))) { echo "Permission Denied!"; }else{ $info = mysql_fetch_array(mysql_query("SELECT uid, tid FROM ibwf_posts WHERE id='".$pid."'")); $res = mysql_query("UPDATE ibwf_posts SET reported='2' WHERE id='".$pid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='handling', details='".getnick_uid(getuid_sid($sid))." handled The Post ".$pid."', actdt='".time()."'"); echo "\"O\"/Post Handled"; }else{ echo "\"X\"/Database Error"; } } echo "

"; $poster = getnick_uid($info[0]); echo "7 $poster's Profile
"; echo "8 View Topic

"; echo "9 Reports/Logs
"; echo "0 \"\"/Home"; echo "

"; } //////////////////////////////////////////Handle Topic else if($action=="htp") { $pid = $_GET["tid"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; if(!isowner(getuid_sid($sid))) { echo "Permission Denied!"; }else{ $info = mysql_fetch_array(mysql_query("SELECT authorid FROM ibwf_topics WHERE id='".$pid."'")); $res = mysql_query("UPDATE ibwf_topics SET reported='2' WHERE id='".$pid."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='handling', details='".getnick_uid(getuid_sid($sid))." handled The topic ".mysql_escape_string(gettname($pid))."', actdt='".time()."'"); echo "\"O\"/Topic Handled"; }else{ echo "\"X\"/Database Error"; } } echo "

"; $poster = getnick_uid($info[0]); echo "7 $poster's Profile
"; echo "8 View Topic

"; echo "9 Reports/Logs
"; echo "0 \"\"/Home"; echo "

"; } ////////////////////////////////////////plusses else if($action=="pls") { $pid = $_POST["pid"]; $who = $_POST["who"]; $pres = $_POST["pres"]; $pval = $_POST["pval"]; echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; if(!isadmin(getuid_sid($sid))) { echo "Permission Denied!"; }else{ $unick = getnick_uid($who); $opl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'")); if($pid=='0') { $npl = $opl[0] - $pval; }else{ $npl = $opl[0] + $pval; } if($npl<0) { $npl=0; } if(trim($pres)=="") { echo "\"X\"/You must Specify a reson for updating $unick's Plusses"; }else{ $res = mysql_query("UPDATE ibwf_users SET lastplreas='".mysql_escape_string($pres)."', plusses='".$npl."' WHERE id='".$who."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='".getnick_uid(getuid_sid($sid))." Updated ".$unick." plusses from ".$opl[0]." to $npl', actdt='".time()."'"); echo "\"O\"/$unick's Plusses Updated From $opl[0] to $npl"; }else{ echo "\"X\"/Database Error"; } } } echo "

0 \"\"/Home"; echo "

"; } else{ echo ""; echo "Admin Tools"; echo ""; echo ""; echo ""; echo "

"; echo "I don't know how did you get into here, but there's nothing to show

"; echo "0 \"\"/Home"; echo "

"; } ?>